package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 景区活动表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "jqactivity")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JQActivity {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 主键id,

	@Column(name = "jqid", length = 50)
	private String jqid;// (景区id)

	@Column(name = "title", length = 50)
	private String title;// (标题)

	@Column(name = "title_vice", length = 50)
	private String title_vice;// (副标题)

	@Column(name = "site", length = 50)
	private String site;// (地点)

	@Column(name = "price", length = 50)
	private String price;// (票价)

	@Column(name = "photo_video", length = 50)
	private String photo_video;// (图片或视频)

	@Column(name = "introduce", length = 50)
	private String introduce;// (介绍)

	@Column(name = "lengthoftime", length = 50)
	private String lengthoftime;// (时长)

	@Column(name = "classoneid", length = 50)
	private String classoneid;// (一级分类id)

	@Column(name = "classtwoid", length = 50)
	private String classtwoid;// (二级分类id)

	@Transient
	private List<JQActivityTime> jqActivityTimes;// (时间)

	@Transient
	private JQActiviClassone jqActiviClassone;// 所属一级分类

	@Transient
	private JQActiviClasstwo jqActiviClasstwo;// 所属二级分类

}
